package com.dragee.modules.sys.po;

import com.dragee.modules.sys.entity.SysRole;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * @author tys on 2023/3/31
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class RolePo {
    public RolePo (SysRole role) {
        this.roleId = role.getRoleId();
        this.roleName = role.getRoleName();
        this.roleKey = role.getRoleKey();
        this.level = role.getLevel();
    }
    private Long roleId;
    private String roleName;
    private String roleKey;
    private Integer level;
}
